package com.zlx.store.common.constant;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;

@ApiModel("定时任务设置")
@Getter
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum CronExpression {
    EVERY_DAY(1,"0 34 20 * * ?");
    @ApiModelProperty(name = "code",notes = "所用任务类型")
    private final int code;
    @ApiModelProperty(name = "msg",notes = "任务定时设置")
    private final String msg;
    CronExpression(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
